﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="Turnos.aspx.cs" Inherits="pages_Turnos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">


    <asp:ScriptManager ID="ScriptManager1" runat="server">



    </asp:ScriptManager>
    <div class="contenedor100 floatLeft">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="block">
            <ContentTemplate>
                <asp:Panel ID="panelTurnoDatos" ClientIDMode="Static" CssClass="floatLeft" runat="server" GroupingText="Datos">

                    <div class="columnaB">
                        <asp:Calendar ID="Calendar1" CssClass="calendar" OnDayRender="Calendar1_DayRender" OnSelectionChanged="Calendar1_SelectionChanged" runat="server" SelectionMode="Day">
                            <TodayDayStyle CssClass="TodayDayStyle" />
                            <TitleStyle CssClass="TodayDayStyle" />
                        </asp:Calendar>

                    </div>
                    <div class="columnaA">
                        <div class="fila">
                            <asp:Label Text="Fecha turno" ID="lblFech" runat="server" />
                            <asp:TextBox AutoPostBack="true" runat="server" name="date" ID="txtFecha" ClientIDMode="Static" />
                        </div>


                        <div class="fila">
                            <asp:Label Text="Estudio" ID="lblEstudio" runat="server" />
                            <asp:DropDownList runat="server" AutoPostBack="true" ID="ddlEstudio" OnSelectedIndexChanged="ddlEstudio_SelectedIndexChanged" OnLoad="ddlEstudio_Load" />
                        </div>
                        <div class="fila">
                            <asp:Label Text="Medico" ID="lblMedico" runat="server" />
                            <asp:DropDownList AutoPostBack="true" runat="server" ID="ddlMedicos" OnSelectedIndexChanged="ddlMedicos_SelectedIndexChanged" />
                        </div>
                        <div class="fila">

                            <asp:Label Text="Documento" ID="lblDocumento" runat="server" />
                            <asp:DropDownList runat="server" ID="ddlDocPaciente" />

                        </div>

                        <div class="fila">
                            <asp:Label Text="Obra Social" ID="lblObra" runat="server" />
                            <asp:DropDownList runat="server" ID="ddlObra" />
                        </div>
                        <div class="fila">
                            <asp:Label Text="Hora" ID="Label1" runat="server" />
                            <asp:DropDownList AutoPostBack="true" ID="ddlHora" ClientIDMode="static" runat="server">
                            </asp:DropDownList>
                        </div>
                        <div class="fila">
                            <asp:Label ID="Label5" Text="Estado" runat="server" />
                            <div>
                                <asp:RadioButton ID="rbReservado" Checked="true" Text="Reservado" GroupName="estadoTurno" runat="server" />
                                <asp:RadioButton ID="rbAbonado" Text="Abonado" GroupName="estadoTurno" runat="server" />
                                <asp:RadioButton ID="rbCancelado" Text="Cancelado" GroupName="estadoTurno" runat="server" />
                            </div>
                        </div>
                                        
                    </div>

                </asp:Panel>

                <asp:Panel runat="server" CssClass="floatLeft fieldsetBuscar"
                    GroupingText="Buscar">
                    <div class="filaBuscar">
                        <asp:Label Text="Desde" runat="server" />
                        <asp:TextBox runat="server" ID="txtDesde" ClientIDMode="Static" AutoPostBack="true" />
                    </div>
                    <div class="filaBuscar">
                        <asp:Label ID="Label2" Text="Hasta" runat="server" />
                        <asp:TextBox ID="txtHasta" runat="server" ClientIDMode="Static" AutoPostBack="true" />
                    </div>
                    <div class="filaBuscar">
                        <asp:Label ID="Label3" Text="Por" runat="server" />
                        <asp:DropDownList runat="server" ID="ddlTipoBusqueda">
                            <asp:ListItem Text="Apellido Medico" />
                            <asp:ListItem Text="Nombre Medico" />
                            <asp:ListItem Text="Apellido Paciente" />
                            <asp:ListItem Text="Nombre Paciente" />
                            <asp:ListItem Text="Documento Paciente" />
                            <asp:ListItem Text="Tipo Estudio" />
                        </asp:DropDownList>
                    </div>
                    <div class="filaBuscar">
                        <asp:Label ID="Label4" Text="Datos" runat="server" />
                        <asp:TextBox ID="txtTexto" runat="server" ClientIDMode="Static" />
                    </div>
                    <div class="filaBuscar">
                        <asp:Button Text="Buscar" ID="btnBuscar" runat="server" OnClick="btnBuscar_Click" />
                        <asp:Button Text="Traer todos" ID="btnTraerTodos" runat="server" OnClick="btnBuscar_Click" />
                    </div>
                </asp:Panel>

                <div class="detallesTurno">
                    <asp:Label Text="Paciente" runat="server" CssClass="tituloDetalleTurno" />
                    <asp:Label Text="-" ID="lblnombreDetalle" runat="server" />
                    <asp:Label ID="Label6" Text="Estudio" runat="server" CssClass="tituloDetalleTurno" />
                    <asp:Label Text="-" ID="lblEstudioDetalle" runat="server" />
                    <asp:Label ID="Label7" Text="Medico" runat="server" CssClass="tituloDetalleTurno" />
                    <asp:Label Text="-" ID="lblMedicoDetalle" runat="server" />
                </div>
                <div style="float: left; width: 474px; margin: 0 0 0 6px; height: 65px;">
                    <asp:Button ID="btnGuardar" Text="Guardar" runat="server" OnClick="btnGuardar_Click" />
                    <asp:Button ID="btnBorrar" Text="Borrar" runat="server" />
                    <asp:Button ID="btnModificar" Text="Modificar" runat="server" />
                    <asp:Label Text="-" ID="txtMsj" runat="server" CssClass="txtMsj" />
                </div>
                <asp:Panel runat="server" ID="contenedorDatosPaciente" Width="100%" GroupingText="Grilla" ClientIDMode="Static">
                    <asp:GridView runat="server" ID="gvTurnos" Width="100%"
                        AllowPaging="True" OnPageIndexChanging="gvTurnos_PageIndexChanging" OnSelectedIndexChanged="gvTurnos_SelectedIndexChanged" AutoGenerateColumns="true" PageSize="10">
                        <Columns>

                            <asp:CommandField ShowSelectButton="True" HeaderText="Seleccionar" />

                            <%--                    <asp:BoundField DataField="FECHA_TURNO" HeaderText="Fecha" />
                    <asp:BoundField DataField="Paciente" HeaderText="Paciente" />
                    <asp:BoundField DataField="doc" HeaderText="Documento" />
                    <asp:BoundField DataField="medico" HeaderText="Medico" />
                    <asp:BoundField DataField="estudio" HeaderText="Estudio" />
                    <asp:BoundField DataField="id_bono" HeaderText="Bono" />
                    <asp:BoundField DataField="costo" HeaderText="Costo" />
                    <asp:BoundField DataField="obra_social" HeaderText="Obra Social" />
                    <asp:BoundField DataField="estado" HeaderText="Estado" />--%>
                        </Columns>
                        <FooterStyle CssClass="FooterStyle" />
                        <HeaderStyle CssClass="HeaderStyle" />
                        <PagerStyle />
                        <RowStyle CssClass="RowStyle" />
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                        <SortedAscendingCellStyle />
                        <SortedAscendingHeaderStyle />
                        <SortedDescendingCellStyle />
                        <SortedDescendingHeaderStyle />
                        <AlternatingRowStyle CssClass="AlternatingRowStyle" />

                    </asp:GridView>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>


    <div class="cut"></div>
</asp:Content>

